package lhdx12;

import java.util.Scanner;

public class Interface {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        System.out.println("请选择：1.登录，2.注册，3.联系客服");
        while (true) {
            int a = in.nextInt();
            try {
                int c=a;
                if (c == 1) {
                    System.out.println("登录");
                    return;
                } else if (c == 2) {
                    System.out.println("注册");
                    return;
                } else if (c == 3) {
                    System.out.println("联系客服");
                    return;
                } else {
                    System.out.println("请重新输入");
                }
            } catch (Exception b) {
                System.out.println("请重新输入");
                return;
            }
        }
    }
}
